<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_merchants_to_member_order-add-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户ID：</label>
			<div class="layui-input-block">
				<input id="merchantsId" name="merchantsId" placeholder="请输入商户ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户ID：</label>
			<div class="layui-input-block">
				<input id="memberId" name="memberId" placeholder="请输入用户ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户收货地址ID：</label>
			<div class="layui-input-block">
				<input id="memberAddressId" name="memberAddressId" placeholder="请输入用户收货地址ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品来源 0：供应商1：自营：</label>
			<div class="layui-input-block">
				<input id="goodsSource" name="goodsSource" placeholder="请输入商品来源 0：供应商1：自营"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商Id：</label>
			<div class="layui-input-block">
				<input id="supplyId" name="supplyId" placeholder="请输入供应商Id"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商名称：</label>
			<div class="layui-input-block">
				<input id="supplyName" name="supplyName" placeholder="请输入供应商名称"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input id="orderTotalCode" name="orderTotalCode" placeholder="请输入订单总编号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品总价：</label>
			<div class="layui-input-block">
				<input id="goodsTotalPrice" name="goodsTotalPrice" placeholder="请输入商品总价"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运费：</label>
			<div class="layui-input-block">
				<input id="freight" name="freight" placeholder="请输入运费"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">优惠价：</label>
			<div class="layui-input-block">
				<input id="preferentialPrice" name="preferentialPrice" placeholder="请输入优惠价"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户实付价格：</label>
			<div class="layui-input-block">
				<input id="memberRealPay" name="memberRealPay" placeholder="请输入用户实付价格"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付方式 0：微信1：支付宝：</label>
			<div class="layui-input-block">
				<input id="payType" name="payType" placeholder="请输入支付方式 0：微信1：支付宝"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付时间：</label>
			<div class="layui-input-block">
				<input id="payTime" name="payTime" placeholder="请输入支付时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付流水号：</label>
			<div class="layui-input-block">
				<input id="payRunningCode" name="payRunningCode" placeholder="请输入支付流水号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付状态 10待支付,20 支付完成,30支付失败：</label>
			<div class="layui-input-block">
				<input id="payState" name="payState" placeholder="请输入支付状态 10待支付,20 支付完成,30支付失败"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败：</label>
			<div class="layui-input-block">
				<input id="refundState" name="refundState" placeholder="请输入退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单状态 10.待支付 20.待发货 30.已发货 40.待评价 50.已完成60.已取消70无效订单：</label>
			<div class="layui-input-block">
				<input id="orderState" name="orderState" placeholder="请输入订单状态 10.待支付 20.待发货 30.已发货 40.待评价 50.已完成60.已取消70无效订单"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">取消原因：</label>
			<div class="layui-input-block">
				<input id="cancelWhy" name="cancelWhy" placeholder="请输入取消原因"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">确认收货时间：</label>
			<div class="layui-input-block">
				<input id="sureGoodsTime" name="sureGoodsTime" placeholder="请输入确认收货时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">平台抽成：</label>
			<div class="layui-input-block">
				<input id="platformProportion" name="platformProportion" placeholder="请输入平台抽成"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商抽成：</label>
			<div class="layui-input-block">
				<input id="supplyProportion" name="supplyProportion" placeholder="请输入供应商抽成"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input id="createTime" name="createTime" placeholder="请输入添加时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input id="updateTime" name="updateTime" placeholder="请输入修改时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input id="deleteFlag" name="deleteFlag" placeholder="请输入"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_merchants_to_member_order-add">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
             			laydate.render({
				elem : '#payTime',
				type : 'datetime'
			});
      			laydate.render({
				elem : '#sureGoodsTime',
				type : 'datetime'
			});
   			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  			//监听提交
			form.on('submit(shop_merchants_to_member_order-add)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/merchants_to_member_order/save", data.field);
				return false;
			});
		});
	</script>
</body>
</html>